package com.ys.service.eKnowAi;

import com.ys.entity.eKnowAi.EKnowKnowledgeList;

import java.util.List;
import java.util.Map;


public interface EKnowKnowledgeListService {

	//新增
	int addKnowledgeList(EKnowKnowledgeList eKnowKnowledgeList);

	//修改
	int updateKnowledgeList(EKnowKnowledgeList eKnowKnowledgeList);

	//删除
	int deleteKnowledgeList(long id);


	//批量新增知识库和向量数据库
	int addKnowledgeListByList(Map<String, Object> params,String indexName) throws Exception;


	//批量新增知识库和向量数据库
	int addKnowledgeListByList2(long baseId,long typeId,List<String> informationList) throws Exception;

	//批量新增知识库和向量数据库
	int addKnowledgeListByList3(long baseId,long typeId,List<String> informationList,String sectionId,String infoMark,String loginUserId) throws Exception;


	//删除知识库和向量数据库
	int deleteKnowledgeListWithES(long id) throws Exception;


	//修改知识库和向量数据库
	int updateKnowledgeListWithES(Map<String, Object> params,String indexName) throws Exception;


	//分段修改知识库和向量数据库
	int updateKnowledgeListWithESBySection(Map<String, Object> params,String indexName) throws Exception;

	//去除空格
	List<String> replaceSpace(List<String> informationList) throws Exception;
}